cmake_minimum_required(VERSION 3.1)
cmake_policy(SET CMP0048 NEW)
project(hmac_sha256 VERSION 0.1.0.0)

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-unused-function")

include_directories("${CMAKE_CURRENT_BINARY_DIR}"
	"${PROJECT_BINARY_DIR}"
	)

set(SHA256
sha256.c
)

set (STAGING_DIR $(STAGING_DIR))

# target
add_executable(hmac_sha256 ${SHA256})
target_link_libraries(hmac_sha256 -lcrypto -lssl)

# install
install(TARGETS hmac_sha256 DESTINATION bin)
